namespace WebApplication1
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Member")]
    public partial class Member
    {
        public Member()
        {
            Managers = new HashSet<Manager>();
            Materials = new HashSet<Material>();
            Workers = new HashSet<Worker>();
            Product_Mid = new HashSet<Product_Mid>();
            ProductOuts = new HashSet<ProductOut>();
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Mem_Id { get; set; }

        [Required]
        [StringLength(20)]
        public string Mem_Name { get; set; }

        [StringLength(20)]
        public string Mem_Tel { get; set; }

        [StringLength(20)]
        public string Mem_Email { get; set; }

        [StringLength(20)]
        public string Mem_Addr { get; set; }

        [StringLength(500)]
        public string Mem_Image { get; set; }

        [StringLength(1000)]
        public string Mem_Memo { get; set; }

        public int? Com_Id { get; set; }

        public virtual Company Company { get; set; }

        public virtual ICollection<Manager> Managers { get; set; }

        public virtual ICollection<Material> Materials { get; set; }

        public virtual ICollection<Worker> Workers { get; set; }

        public virtual ICollection<Product_Mid> Product_Mid { get; set; }

        public virtual ICollection<ProductOut> ProductOuts { get; set; }
    }
}
